package com.briup.web.controller;

import com.briup.service.RoleService;
import com.briup.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: cms
 * @BelongsPackage: com.briup.web.controller
 * @Author: li
 * @CreateTime: 2024-11-21  10:00
 * @Description: TODO
 * @Version: 1.0
 */
@Slf4j
@RestController
@RequestMapping("/auth/role")
public class RoleController {
    @Autowired
    private RoleService roleService;
    @ApiOperation("获取所有角色信息")
    @GetMapping("/getAll")
    public Result getAll(){
        return Result.success(roleService.getAll());
    }
}
